import {get,post} from '../utils/require';

//搜索单曲
export const searchMusicAPI = (keywords) => get('/search?timestamp='+Date.now()+'&cookie='+localStorage.getItem('token')+'&keywords='+keywords+"&type=1"+"&limit=4");
export const searchZhuanAPI = (keywords) => get('/search?timestamp='+Date.now()+'&cookie='+localStorage.getItem('token')+'&keywords='+keywords+"&type=10"+"&limit=2");
export const searchPeopleAPI = (keywords) => get('/search?timestamp='+Date.now()+'&cookie='+localStorage.getItem('token')+'&keywords='+keywords+"&type=100"+"&limit=1");
export const searchListAPI = (keywords) => get('/search?timestamp='+Date.now()+'&cookie='+localStorage.getItem('token')+'&keywords='+keywords+"&type=1000"+"&limit=2");

//获取焦点时的默认表单
export const searchDefaultAPI = () => get('/search/hot');
